<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      mailx-12.5
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;19.&nbsp;Mail/News Clients
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="fetchmail.html" title=
          "Fetchmail-6.4.2">Prev</a>
          <p>
            Fetchmail-6.4.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="mutt.html" title="Mutt-1.13.4">Next</a>
          <p>
            Mutt-1.13.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="mailnews.html" title=
          "Chapter&nbsp;19.&nbsp;Mail/News Clients">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="mailx" name="mailx"></a>mailx-12.5
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Heirloom mailx
        </h2>
        <p>
          The <span class="application">Heirloom mailx</span> package
          (formerly known as the <span class="application">Nail</span>
          package) contains <span class=
          "command"><strong>mailx</strong></span>, a command-line Mail User
          Agent derived from Berkeley Mail. It is intended to provide the
          functionality of the POSIX <span class=
          "command"><strong>mailx</strong></span> command with additional
          support for MIME messages, IMAP (including caching), POP3, SMTP,
          S/MIME, message threading/sorting, scoring, and filtering.
          <span class="application">Heirloom mailx</span> is especially
          useful for writing scripts and batch processing.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "http://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5.orig.tar.gz">
                http://ftp.debian.org/debian/pool/main/h/heirloom-mailx/heirloom-mailx_12.5.orig.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 29a6033ef1412824d02eb9d9213cb1f2
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 317 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 3.2 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Required patch: <a class="ulink" href=
                "http://www.linuxfromscratch.org/patches/blfs/9.1/heirloom-mailx-12.5-fixes-1.patch">
                http://www.linuxfromscratch.org/patches/blfs/9.1/heirloom-mailx-12.5-fixes-1.patch</a>
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Heirloom mailx Dependencies
        </h3>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../postlfs/nss.html" title=
          "NSS-3.50">NSS-3.50</a>, <a class="xref" href=
          "../postlfs/mitkrb.html" title="MIT Kerberos V5-1.18">MIT Kerberos
          V5-1.18</a> (for IMAP GSSAPI authentication), and an <a class=
          "xref" href="../server/mail.html" title=
          "Chapter&nbsp;21.&nbsp;Mail Server Software">MTA</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/mailx">http://wiki.linuxfromscratch.org/blfs/wiki/mailx</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Heirloom mailx
        </h2>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            This package does not support parallel build.
          </p>
        </div>
        <p>
          Install <span class="application">Heirloom mailx</span> by running
          the following commands.
        </p>
        <pre class="userinput">
<kbd class=
"command">patch -Np1 -i ../heirloom-mailx-12.5-fixes-1.patch &amp;&amp;

sed 's@&lt;openssl@&lt;openssl-1.0/openssl@' \
    -i openssl.c fio.c makeconfig      &amp;&amp;

make -j1 LDFLAGS+="-L /usr/lib/openssl-1.0/" \
     SENDMAIL=/usr/sbin/sendmail</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class=
"command">make PREFIX=/usr UCBINSTALL=/usr/bin/install install &amp;&amp;

ln -v -sf mailx /usr/bin/mail &amp;&amp;
ln -v -sf mailx /usr/bin/nail &amp;&amp;

install -v -m755 -d     /usr/share/doc/heirloom-mailx-12.5 &amp;&amp;
install -v -m644 README /usr/share/doc/heirloom-mailx-12.5</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>make
          SENDMAIL=/usr/sbin/sendmail</strong></span>: This changes the
          default MTA path of <span class=
          "command"><strong>/usr/lib/sendmail</strong></span>.
        </p>
        <p>
          <span class="command"><strong>make PREFIX=/usr
          UCBINSTALL=/usr/bin/install install</strong></span>: This changes
          the default installation path of <code class=
          "filename">/usr/local</code> and the default <span class=
          "command"><strong>install</strong></span> command path of
          <code class="filename">/usr/ucb</code>.
        </p>
      </div>
      <div class="configuration" lang="en" xml:lang="en">
        <h2 class="sect2">
          Configuring Heirloom mailx
        </h2>
        <div class="sect3" lang="en" xml:lang="en">
          <h3 class="sect3">
            <a id="mailx-config" name="mailx-config"></a>
          </h3>
          <h4 class="title">
            <a id="mailx-config" name="mailx-config"></a>Config Files
          </h4>
          <p>
            <code class="filename">/etc/nail.rc</code>, <code class=
            "filename">~/.mailrc</code> and <code class=
            "filename">~/.nailrc</code>
          </p>
        </div>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">mail, mailx and nail</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="mailx-prog" name="mailx-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>mailx</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a command-line mail user agent compatible with the
                    <span class="command"><strong>mailx</strong></span>
                    command found on commercial Unix versions.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="mail-mailx" name="mail-mailx"></a><span class=
                    "term"><span class=
                    "command"><strong>mail</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a symbolic link to <span class=
                    "command"><strong>mailx</strong></span>.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="nail-mailx" name="nail-mailx"></a><span class=
                    "term"><span class=
                    "command"><strong>nail</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a symbolic link to <span class=
                    "command"><strong>mailx</strong></span>.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-18 14:50:03 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="fetchmail.html" title=
          "Fetchmail-6.4.2">Prev</a>
          <p>
            Fetchmail-6.4.2
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="mutt.html" title="Mutt-1.13.4">Next</a>
          <p>
            Mutt-1.13.4
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="mailnews.html" title=
          "Chapter&nbsp;19.&nbsp;Mail/News Clients">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
